package com.nopay.dxdwphone.bean;

import java.util.ArrayList;
import java.util.List;

public class AreaBean {

    private String province;

    private List<City> cityList = new ArrayList<>();

    private boolean isSelected;

    private boolean unknown;

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
        unknown = "未知".equals(province);
    }

    public List<City> getCityList() {
        return cityList;
    }

    public void setCityList(List<City> cityList) {
        this.cityList = cityList;
    }

    public boolean isSelected() {
        return isSelected;
    }

    public void setSelected(boolean selected) {
        isSelected = selected;
    }

    public boolean isUnknown() {
        return unknown;
    }

    public void setUnknown(boolean unknown) {
        this.unknown = unknown;
    }

    public static class City {

        public City(String name) {
            this.name = name;
        }

        private String name;

        private boolean isSelected;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public boolean isSelected() {
            return isSelected;
        }

        public void setSelected(boolean selected) {
            isSelected = selected;
        }
    }
}
